lravel redirect with error

103

In controller - 
return redirect()->route('login')->withErrors(['error' => 'The credentials do not match our records']);

In blade/view - 
<p>{{session('errors')->first('error');}}</p>

Comments

Submit
0 Comments